package C8_1_TemplateMethod.after;

import C8_1_TemplateMethod.Loan;

/**
 * @author xufy
 * @version 1.0
 **/
public abstract class CapitalStrategy {
//    public abstract double capital(Loan loan);

    public double capital(Loan loan) {
        return ab() * c() * d();
    }

    public abstract double ab();

    public double c() {
        return 0;
    }

    public double d() {
        return 0;
    }
}

